added prefixes to refs; added comments