testing aux functions