resolving duplicated logic