src with spark codes