having trouble linking interface to function