fix for entrance checking