proper plug in function