added; simple X and Y discovery function