removing unnecessary code from specs