added rest functionality without implementing