added access_type param