fixed deprecated methods