trying to get rid of the 500 error