+added functions to libarary.java