can this be done in the decorator itself? (as a parameter?)