added consumes and produces for a method