basic bit tricks