sorted some variable decleration