reworked variable syntax in echo