fixed negative coordinates + small fixes