added basic bit operations