added scrData function