take a param as input to the decorator