while and spelling fix