error handling calculating heritability..