modified return type to application/json