use nicer hash creation syntax
fix bug:  graph data was not calculated correctly

we must add the element, even if timestamps might be the same
refactor timestamp creation