made a function reusable