make command a function isntead