added some minor editions necessary to compile