setProperty method added