startPoint function added