simplifying rest api!!!