code reduce for 404