added rest functionalyty