creating api, hiding objects