update lengthpep function + comments