fixed return indentation in validate; added p3 and p4 to engineData