[coding] use typedefs where applicable