Changes + check horizontal and check vertical new functions