make script more flexible easier to edit