rmoving extraneous code (the bundle already has this method).