adjust the condition in detecting whether the star is inside the frame
some warnings should always be displayed