added max coords handle