solved this problem by 2 ways