some bit operations removed