fixed error in down error ruining entire code