first verion for ptap