fixing code for dover.