function merging and code refactoring