Change coord to respect parameters X and Y