modularize variables