missed spaces and group by