removed l2_mask by generating random mask