saving version-1
working, but takes too long