added declarations for some functions