added extra helper functions, changed floats to decimals for Triggers