decorator was on wrong function