correcting typo on type of function
minor debug print