alter extractSLP algorithm