How to use Bitwise while setting properties