removed checkvars method