add condition to remove symbolic link as file