functions for fish.