adding resign()