Ripping out stuff in wrong file