added hamilton cycle