fixing 405 error