so far added few functionality .. todo calculate average in single shot