Updated make both functions with working code