add declaration of function getSingle()