updated code to match update to libraries
better markdown