function as value in struct some time can be useful