fixed main in myPoint