replace usage of deprecated variable. resolves #8