adding values for rest function