removing everything that is not needed