refactoring passing timestamp as float to save snapshot