trying to figure out the 500 error