changed for 3.4
Got rid of end - not needed in 3.4
Changed signals for positions