added echoes to functions