split Identity method to another file