setStyles works as intended