refactor lindo