working on pb0r function