created peripheral API