fixed bug in supplant