added private modifier to if and language members