new helper code

new helper code