Added code to convert old behavior data to new format
updating behavior code