trying to fix the 500 error