check for entry first