correcting typing bug