remove usage of deleted method