created the variable margin