updated code for updated giotto