remove undefined items