getOnes function started