strip off things we do not need