added getray to light