fixed, works fine for the examples