fixed a method