updated to horizontal direction