fixed typo
previously was connection object now is api