working on type convert