setting default value to 0 at start of plugin