splitting correctly