removed the detectParameters function