fixed typo
reverted over optimization