better sdk code