changed return code to 40