green
refactor: mark as const
refactor
refactor:extract function
refactor: separate function into  query and command