sequences working correctly