fixed more bugs---a coordinate system glitch probably still remains