working on helper methods for #22 and #14