to prevent coords intersection