refactoring timestamped to be called layer