removing deprecated function and file
bugfix