refactor(rest) rm unused vars