fixes typo
minor code improvement