decorator used as object