add csv and modify for up down movements