optimize moment initialization