fixed all issues thanks tex.stackexchange