adding quality setting