fix code formatting
add types to extTypes