changed boolean to allow data structure creation