fixed typo and necessary arguments length