added auxilary contect function