changed object decorator to func decorator