trying to save round robin function