reduces duplication

bitwise updated