added HelperFunctions