usage getattr to see if attribute existing in charmap