got rid of explicit error checking