move echo outside if