fixed undefined references