arduino IDE doesn't like "if(serial.available()>=4);
Why are you putting a semicolon at the end of an if statement? That forms the body of the if statement, and is, effectively a no-op. Do nothing if the statement is true. Do nothing if the statement is false.
By the way, surely you know that the Serial instance uses a capital S.