correct checks
error handling