checking for cov errors
ifdef for phi smear