replace deprecated function split() with explode()