remove the unncessary parts