added conditionals to check if checks were needed.  fixes #196