fixed and added the cango function