library now working properly