fixed create squad function