fixing indentation bug in wrapper