you should not copy 2 duplicated code. really really bad!!!