added new setStyles and getStyles methods