get rid of get_singles funtion