refactoring add method to avoid converting twice