worked on manual reference version