fix indentation and API signature