small 0/1 hack