Creating Auxiliary function help