everything works except memory error in 9