removed unused function declarations and prototypes