really bad solution but its work