refactor Utils method
 * difference between sdk versions