completing the APIs