updated forward declarations
one more forward declaration
finished built in var function and removed old built in def function