refactor logo helper