trying my own lib