added std:: namespace qualifier where appropriate