some code on mango