added function and option for backward compatibility