set 'this' to function properties