minor correction + getting type