removed unneeded scope var