problem with creating a library