fixed a problem with missing functions