added checkOnScreen