while statement still incorrect