changed variable name as suggested by Hongkai