Remove unnecessary variable and return list joined