fix and functions