removed signed integer checks, moved std:: instead function scope
moved using std:: inside function scope