simple signal function