added rename factor level functionality