translate to bitwise shifting