getting variable type and methods