initial commit

need to remove redundant and stupid code