ensure not nil
remove unused dependency