optimezed code and references.