can set properties as properties object, don't need to set each property individually