removed boilerplate code using dynamic nature of JS