changed 2**15-1 ref for 2**15