added function to fetch coefficient by variable