remove depricated code.