remove ensure; fix regex