got i hate github, this is a fixed code