added arg to getWaysOnScreen