fixed spelling mistake and made generic