add method for clearing all stored y coordinates