add entrance condition