typed some functions in