bugfix -- variable name changed from function