adding first bit of controller logic