refactor: use of append with multiple parameter