refining vib and led funcitons