changed assert for checking coordinate keys to allow null values