from right to left and vice versa from top to bottom and from bottom