making legend placement a argument