changed from 8 to 16 bit res