fixed protoyping error