Refactory code: aType