fixing tabs and return code omissions