fix incorrect function name in appendElements