fixed syntax with getting Y data