corrected bugs, added 'name' criterion fo 'VALUE'