bug fixing, syntax checking