remove unnecessayr bits