bugfix bin check; unified variable names