added variables to help out calculations