updated profile to make USE_EXPAND work
fixed variables names