add rest restriction