modified FADBAD library