rename middleware method to avoid multiple calls

@biyeun