removed array modification and added :hidden option