creating interface for api