_t for typedef
loop fixed