added type decl
got types working