helper function contracts + signature / corrected some typos.