generate correct css