typeo and logic error