make code reusable