updated to horizontal direction
updated to horizontal direction