solved setter() function issue