cleanup, added back validation to limit elements to 3