includes base variable calculations