primary and secondary deviation