added square def dirction instead of going UP