got rid of both the error and the fail