bug fix and function prototype status