fixed undefined reference to ERROR'