working on type errors.