converting to my diff library