fixing error and consistency