changed setProperty to putProperty