when i home it will home y then home x then move x all of the way to the right and the bed moves down how do i fix this .
The first thing I would do, if you haven't already, is double check all of your end-stop wiring connections on the control board.
Having it home to the left suggests that the motor is connected correctly (left moves the head left). It moves quite quick but mainly too far to the right, I wonder if you have the correct motor on the x-axis? some are 0.9 and some are 1.8. I don't think the wrong gear would cause that. With the Z - is the IR permanently lit up or only when your hand is under it? Irrespective of how X and Y had homed, I would expect the bed to move up towards the head. I wonder if the IR is triggering constantly?