remove the extra bits