at an end to if else in decorator