added error check to manipulation Qs