replaceing curly brackets with squad brackets