fixed Error prototyping