refactor area type checking to use new getter method rather than passing around the type; improvements to suggestion by @paulflo150 in issue #6