Take out undefined variables