added return for library