cleaned up PHYLayer for some speed