fixed some errors .x into ->x