add merge int to long function