how to decide entry and exit