use mutable for const function and beautify codes