* fixed bug in referencing