refactored for use 204 status code