add mask to short_data