fix long standing typo

optimization of the whole logic is left for next student joining the project...