added COLUMN_DIRECTION. still buggy on LAST_TO_FIRST state