fixed a few errors in the function headers