callbacks flow sorting