added new functions for better helper performance.