fix language and standardize code