Mountain valleys and lakes were sometimes formed by the glaciers that once flowed through them