removed useless plugin and replaced it with a function