fixing terminal to work