implemented reverseY()