vertical and horizontal checks working