rearranged statements in pm0 skeleton to improve readability