handling negative coords