refactor - not working in command line
blanket working on the command line