if statement working first try..