fixed displacement in y
fixed rotation; added test