value not workan properly