added all variables and functions