fixed undefined reference issue