introduce coord min/max