added capping of quality scores