cleaner way of tying variables to models