fixed typo and added parameter type