replace echo waiting for variable definition