[all] use static to improve a functional approach