Removed unecssary ref, increased performance