some code for propnet