checked for errors