extend enum to bitwise operation