passing tests. deprecated methods used