swinging with variables