Deprecated methods in Professor

replace deprecated methods.