changed: some depricated functions to the new functions