corrected the mistake: var type