implement searching empty port